import request from '@/utils/request'

// 查询薪酬报告列表
export function listSalaryReport(query) {
  return request({
    url: '/salary/salaryReport/list',
    method: 'get',
    params: query
  })
}

// 查询薪酬报告详细
export function getSalaryReport(query) {
  return request({
    url: '/salary/salaryReport/' + query.id,
    method: 'get',
    params: query
  })
}

// 新增薪酬报告
export function addSalaryReport(data) {
  return request({
    url: '/salary/salaryReport',
    method: 'post',
    data: data
  })
}

// 修改薪酬报告
export function updateSalaryReport(data) {
  return request({
    url: '/salary/salaryReport',
    method: 'put',
    data: data
  })
}

// 删除薪酬报告
export function delSalaryReport(id) {
  return request({
    url: '/salary/salaryReport/' + id,
    method: 'delete'
  })
}
